package com.wyg.epcommonbase.common.enums;

/**
 * @Author: WangYongGan
 * @Date: 2021/12/21 1:41
 * @Description:
 */
public enum PdfTheme {

    shine(0),
    macarons(1),
    vintage(2),
    roma(3),
    dark(4),
    infographic(5),

    ;
    private int themeNum;
    public static int max;
    PdfTheme(int themeNum){
        this.themeNum = themeNum;
    }
    public static PdfTheme getByNum(int themeNum){
        for (PdfTheme pdfTheme : values()) {
            if(pdfTheme.getThemeNum()==themeNum)
                return pdfTheme;
        }
        return macarons;
    }
    public int getThemeNum() {
        return themeNum;
    }

    public void setThemeNum(int themeNum) {
        this.themeNum = themeNum;
    }
}
